package cn.hhchat.hutool_re.core.clone;

import cn.hhchat.hutool_re.exception.CloneRuntimeException;

/**
 * Created this one by HMH on 2017/12/27.
 */
public class CloneSupporter<T> implements Cloneable<T> {

    @Override
    @SuppressWarnings("unchecked")
    public T clone() {
        try {
            return (T) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new CloneRuntimeException(e);
        }
    }
}
